package com.ruoyi.mappers;

import com.ruoyi.pojo.TOrderDo;
import com.ruoyi.vo.OrderQueryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper {

    /**
     * @Description:获取全部订单列表
     * @Param:
     * @Return:
     */
    List<TOrderDo> getAllOrderList(OrderQueryVo orderQueryVo);


    /**
     * @Description:新增订单
     * @Param:
     * @Return:
     */
    int addOrder(TOrderDo tOrderDo);


    /**
     * @Description:修改订单
     * @Param:
     * @Return:
     */
    int updateTOrder(TOrderDo tOrderDo);

    /**
    * @Description:删除订单
    * @Param:
    * @Return:
    */
    int deleteTOrderById(Long id);

    /**
     * @Description:订单详情
     * @Param:
     * @Return:
     */
    TOrderDo selectTOrderVo(Long id);

    /**
    * @Description:批量删除订单
    * @Param:
    * @Return:
    */
    int deleteTOrderByIds(Long[] ids);

    /**
     * @Description:批量删除收入金额
     * @Param:
     * @Return:
     */
    int deletePlatformRevenueByOrderIds(Long[] ids);
    /**
     * @Description:通过Id指定字段名查询订单数据
     * @Param:
     * @Return:
     */
    List<TOrderDo> selectOrderVoById(@Param("id") Long id,@Param("field") String field);

}
